import unittest
from time import sleep

from selenium import webdriver

from Page.Page import login_page
from Page.Pay_Page import Pay_Page


class Pay_Case(unittest.TestCase):
    # 测试固件
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
        lp = login_page(self.driver)
        lp.act_login('admin', '123456')
        print('开始')

    def tearDown(self):
        sleep(5)
        self.driver.quit()
        print('结束')
    #点击进入支付产品模块
    def test_01(self):
        po=Pay_Page(self.driver)
        po.dianji()
        po.chanpin()
    #点击进入用户支配模块
    def test_02(self):
        po=Pay_Page(self.driver)
        po.dianji()
        po.yhzhiei()


if __name__ == '__main__':
    unittest.main()
